<?
class Footer extends TdPage {
	function __construct($template) {
		parent::__construct("", $template);
		
		$mlang = new TdMenu("mlang");
		
		if ($this->classname == "index") {
			$mlang->setPre("<div class=\"ext footer_content\">");
			$mlang->setPreItem("<p class=\"ext footer_content_p\">");
			$mlang->setPostItem("</p>");
		}
		else {
			$mlang->setPre("<div class=\"ext footer_language\">");
			$mlang->setSeparator("<p class=\"ext footer_language_p\">|</p>");
		}
		$mlang->setPost("</div>");
		$mlang->addItem("Italiano", $this->webroot."/".$this->classname.".htm/locale/it_IT/");
		$mlang->addItem("English (US)", $this->webroot."/".$this->classname.".htm/locale/en_US/");
		$mlang->addItem("Español", $this->webroot."/".$this->classname.".htm/locale/es_ES/");
		$mlang->addItem("Português (Brasil)", $this->webroot."/".$this->classname.".htm/locale/po_PO/");
		$mlang->addItem("Français (France)", $this->webroot."/".$this->classname.".htm/locale/fr_FR/");
		$mlang->addItem("Deutsch", $this->webroot."/".$this->classname.".htm/locale/de_DE/");
		$mlang->addItem("لعربية", $this->webroot."/".$this->classname.".htm/locale/ar_AR/");
		
		$this->addComponent($mlang);
	}
}
?>